<?php


namespace BWL\webshopBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
/**
 * @ORM\Entity
 * @ORM\Table(name="item_item")
 */
class ItemItem
{

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Item" , inversedBy="whole_items")
     */
    protected $whole_item;

    /**
     * @ORM\Id
     * @ORM\ManyToOne(targetEntity="Item" , inversedBy="part_items"))
     */
    protected $part_item;

    /**
     * @ORM\Column(type="integer")
     */
    protected $count;


    /**
     * Set whole_item
     *
     * @param BWL\webshopBundle\Entity\Item $wholeItem
     * @return ItemItem
     */
    public function setWholeItem(\BWL\webshopBundle\Entity\Item $wholeItem)
    {
        $this->whole_item = $wholeItem;
    
        return $this;
    }

    /**
     * Get whole_item
     *
     * @return BWL\webshopBundle\Entity\Item 
     */
    public function getWholeItem()
    {
        return $this->whole_item;
    }

    /**
     * Set part_item
     *
     * @param BWL\webshopBundle\Entity\Item $partItem
     * @return ItemItem
     */
    public function setPartItem(\BWL\webshopBundle\Entity\Item $partItem)
    {
        $this->part_item = $partItem;
    
        return $this;
    }

    /**
     * Get part_item
     *
     * @return BWL\webshopBundle\Entity\Item 
     */
    public function getPartItem()
    {
        return $this->part_item;
    }

    /**
     * Set count
     *
     * @param integer $count
     * @return ItemItem
     */
    public function setCount($count)
    {
        $this->count = $count;
    
        return $this;
    }

    /**
     * Get count
     *
     * @return integer 
     */
    public function getCount()
    {
        return $this->count;
    }
}